import request from "@/utils/request";
import { BASE_URL, HR_API, APPID, REDIRECT_URI } from "@/settings";
// 查询 详情
export function recruitInfosDetail(recruitInfoId) {
  return request({
    url: `${BASE_URL}/recruit2/api/v1/recruitInfos/findVoById/${recruitInfoId}`,
    method: "get"
  });
}
// 点击应聘查看有没有简历
export function selectFirstOneByUserId(data) {
  return request({
    url: `${BASE_URL}/recruit2/api/v1/jobSeekers/selectFirstOneByPhone`,
    method: "get",
    data
  });
}
// 根据公司 id 查用工单位id
export function companyUnits(companyUnitsId) {
  return request({
    url: `${BASE_URL}/recruit2/api/v1/companyUnits/${companyUnitsId}`,
    method: "get"
  });
}
// 根据公司 id 查用工单位id
export function selectByRandomKey(data) {
  return request({
    url: `${BASE_URL}/recruit2/api/v1/recruitInfos/selectByRandomKey`,
    method: "get",
    data
  });
}
// 查询  获取职位二维码
export function getQRCodeByrecruitInfoIds(data) {
  return request({
    url: `${BASE_URL}/recruit2/api/v1/recruitInfos/getQRCodeByrecruitInfoIds`,
    method: "post",
    data
  });
}
